using System.ComponentModel;
using System.Threading;

namespace SocketTool.Model.BindingModels
{
    /// <summary>
    /// 协议分组信息
    /// </summary>
    public class ProtocolGroupBindingModel : NotifyObject
    {
        public int GroupId { get; set; }

        private int mIndex;

        public int Index
        {
            get => this.mIndex;
            set => Set(ref this.mIndex, value);
        }


        private string mGroupName;
        /// <summary>
        /// 分组名称
        /// </summary>
        public string GroupName
        {
            get => this.mGroupName;
            set => Set(ref this.mGroupName, value);
        }

        private bool mIsEditing;
        /// <summary>
        /// 是否处于编辑模式下
        /// </summary>
        public bool IsEditing
        {
            get => this.mIsEditing;
            set => Set(ref this.mIsEditing, value);
        }

        private string mEditName;
        /// <summary>
        /// 编辑的名称
        /// </summary>
        public string EditName
        {
            get => this.mEditName;
            set => Set(ref this.mEditName, value);
        }
    }
}